<?php
namespace app\index\controller;
use think\Cookie;
class Index extends Base
{
    
    public function open_ansewer(){

        echo "1";
    }

    public function ctest(){
             echo "string";
             dump(Cookie::get('user_id'));
        }
    public function index()
    {
    	echo "欢迎访问问卷调查系统";

    }
    public function test()
    {
        return '这是一个测试方法!';
    }
    public function hello($name = 'thinkphp')
    {
        $this->assign('name', "i am Tom");
        return $this->fetch();
    }
    public function select($name='usename')
    {
        // return 'hi '  .  $name . '!'; 
        // //return 'Hello,' . $name . '!';
        // exit;
        // $data = \think\Db::name('article')->find();
        // //var_dump($data);
        // //exit();
        // $this->assign('result', $data);
 
            session('serialnumber', null);
            session('loginmember', null);
            session('memberid', null);
        return $this->fetch();
    }


}
 
 class Into extends Base
{
    public function index()
    {
    	echo "123";
    	exit;
    	$artres= \think\Db::name('article')->alias('a')->join('cate c','c.id = a.cateid','LEFT')->field('a.id,a.title,a.pic,a.time,a.desc,a.click,a.keywords,c.catename')->order('a.id desc')->paginate(2);
    	$this->assign('artres',$artres);
        return $this->fetch();
    }
    public function test()
    {
        return '这是一个测试方法!';
    }
    public function hello($name = 'thinkphp')
    {
        $this->assign('name', "i am Tom");
        return $this->fetch();
    }


}

